//
//  BMMainTool.m
//  ZPM
//
//  Created by 陈宇 on 15/3/20.
//  Copyright (c) 2015年 陈宇. All rights reserved.
//

#import "BMMainTool.h"
#import "BMNewFeatureController.h"

@implementation BMMainTool

+ (UIViewController *)chooseRootViewController
{
    if ([BMUtils showNewFeature]) {
        return [[BMNewFeatureController alloc] init];
    }
    return [UIStoryboard storyboardWithName:@"Main" bundle:nil].instantiateInitialViewController;
}

+ (NSDate *)convertWithString:(NSString *)dateString
{
    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
    formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
    return [formatter dateFromString:dateString];
}

@end
